Skip to content

Comments

Configure auto-reset of error#61

Open
mac-kan wants to merge 4 commits intoepics-modules:masterfrom
mac-kan:master
Open

Configure auto-reset of error#61
mac-kan wants to merge 4 commits intoepics-modules:masterfrom
mac-kan:master

Conversation

@mac-kan
Copy link

@mac-kan mac-kan commented Feb 17, 2026

In v9.4.0 a functionality was introduced to automatically reset an error. Allow this functionality to be configureable.

mac-kan and others added 4 commits February 2, 2026 16:53
Parses SetAxisAutoResetError to allow configuring if an error should be
automatically reset when an axis is enabled.
Adds a function to allow the parser to setup the configured bit.
Creates:
*A variable to control the autoreset of an error when axis enabled.
*A function, setAutoResetError, to configure the variable.

Controls the execution of errorReset() if autoreset is enabled.
@anderssandstrom
Copy link
Collaborator

Thanks. Can you make the feature default true, don't feel like updating all our IOCs.
Can also be done in ecmccfg..

@mac-kan
Copy link
Author

mac-kan commented Feb 18, 2026

@anderssandstrom Sure, maybe as you say it would fine to do in ecmccfg.

Another question: I would like to expose this variable over asyn so that it can be read e.g. during testing. Do you have any suggestion of where such a read back variable best fits? Would it be in the statusword or something else?

@anderssandstrom
Copy link
Collaborator

Ok, then I expect a PR to ecmccfg also then.
This is a configuration and it's not really needed in the status word for normal operation (also the status word is kind of full already). Instead, for tests, I suggest you implement a getter command to read the parameter and then use stream device to map it to a PV. Then we do not clutter the realtime interface too much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants